#ifndef WAITINGROOM_H
#define WAITINGROOM_H

#include <wx/wxprec.h>

#ifdef __BORLANDC__
    #pragma hdrstop
#endif

//(*Headers(WaitingRoom)
#include <wx/button.h>
#include <wx/frame.h>
#include <wx/listbox.h>
//*)

#include <vector>

class Connection;
class Room;

class WaitingRoom: public wxFrame
{
	public:

		WaitingRoom(wxWindow* parent, Connection*, wxWindowID id = -1);
		virtual ~WaitingRoom();

		void addRoom(Room* r);

		//(*Identifiers(WaitingRoom)
		static const long ID_LISTBOX1;
		static const long ID_BUTTON2;
		static const long ID_BUTTON1;
		//*)

	protected:

		//(*Handlers(WaitingRoom)
		void OnJoin(wxCommandEvent& event);
		//*)

		//(*Declarations(WaitingRoom)
		wxListBox* ListBox1;
		wxButton* Button2;
		wxButton* Button1;
		//*)


	private:
        Connection* server;

		DECLARE_EVENT_TABLE()
};

#endif
